<template>
    <div>
        <template  v-if="images.length > 0">
            <img v-for="(item,index) of images" :src="item.url" class="avatar marR8" :key="index" style="display:inline-block" :preview="preview" title="点击可预览图片">
        </template>
        <div class="tipNoData" v-else>暂无数据</div>
    </div>
</template>

<script>
export default {
    props: {
        images:{
            type : Array,
             default:[]
        },
        preview:{
            type :Number,
            default : 1
        }
    },
    watch: {
        images (val, oldVal) {
            console.log('------------------------')
            console.log(val)
        },
        deep: true
    },
    data(){
        return {
        }
    }
}
</script>
